<template>
  <c-permission-tabs v-model="active">
    <el-tab-pane :label="label" name="slot">
      <slot />
    </el-tab-pane>
    <el-tab-pane label="日志" name="log">
      <Log :source-id="sourceId" />
    </el-tab-pane>
  </c-permission-tabs>
</template>
<script>
import Log from './index'
export default {
  name: 'CLogTabs',
  components: {
    Log
  },
  props: {
    sourceId: {
      type: String,
      default: ''
    },
    label: {
      type: String,
      default: '详情'
    }
  },
  data() {
    return {
      active: 'slot'
    }
  }
}
</script>
